import request from '@/utils/request'

const api_name = '/product/attrgrouprelation/'

export default {

    getRelation(data) {
        return request({
            url: `${api_name}/list`,
            method: 'get',
            params: data
        })
    },

    getNoRelation(data) {
        return request({
            url: `${api_name}/noattr`,
            method: 'get',
            params: data
        })
    },

    addRelation(data) {
        return request({
            url: `${api_name}/addrelation`,
            method: 'post',
            data: data
        })
    },

    removeRelation(data) {
        return request({
            url: `${api_name}/delete`,
            method: 'delete',
            data: data
        })
    },

}